<?php
declare (strict_types = 1);

namespace app\controller;

use app\traits\CommonTrait;
use app\model\Shop as ShopModel;

class Shop
{
    use CommonTrait;

    public function detail($id){
        $id = request()->param('id', '');
        if($id == '') return $this->apiJson(-1, '缺少参数');
        $shop = ShopModel::getShop($id);
        return $this->apiJson(1, 'ok', $shop);
    }
}
